package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbWishMapper;
import com.subang.function.domain.SbWish;
import com.subang.function.service.ISbWishService;

/**
 * 用户愿望Service业务层处理
 * 
 * @author subei
 * @date 2025-03-13
 */
@Service
public class SbWishServiceImpl implements ISbWishService 
{
    @Autowired
    private SbWishMapper sbWishMapper;

    /**
     * 查询用户愿望
     * 
     * @param wishId 用户愿望主键
     * @return 用户愿望
     */
    @Override
    public SbWish selectSbWishByWishId(Long wishId)
    {
        return sbWishMapper.selectSbWishByWishId(wishId);
    }

    /**
     * 查询用户愿望列表
     * 
     * @param sbWish 用户愿望
     * @return 用户愿望
     */
    @Override
    public List<SbWish> selectSbWishList(SbWish sbWish)
    {
        return sbWishMapper.selectSbWishList(sbWish);
    }

    /**
     * 新增用户愿望
     * 
     * @param sbWish 用户愿望
     * @return 结果
     */
    @Override
    public int insertSbWish(SbWish sbWish)
    {
        return sbWishMapper.insertSbWish(sbWish);
    }

    /**
     * 修改用户愿望
     * 
     * @param sbWish 用户愿望
     * @return 结果
     */
    @Override
    public int updateSbWish(SbWish sbWish)
    {
        return sbWishMapper.updateSbWish(sbWish);
    }

    /**
     * 批量删除用户愿望
     * 
     * @param wishIds 需要删除的用户愿望主键
     * @return 结果
     */
    @Override
    public int deleteSbWishByWishIds(Long[] wishIds)
    {
        return sbWishMapper.deleteSbWishByWishIds(wishIds);
    }

    /**
     * 删除用户愿望信息
     * 
     * @param wishId 用户愿望主键
     * @return 结果
     */
    @Override
    public int deleteSbWishByWishId(Long wishId)
    {
        return sbWishMapper.deleteSbWishByWishId(wishId);
    }
}
